﻿using System;
 struct Mystruct{

public int a;
}
class ProgramTEst
{
    static void MainTEst(string[] args)
    {
        float a = 0.1f;
        float b = 0.2f;
        float sum = a + b;

        Console.WriteLine("a: " + a);          // 输出: a: 0.1
        Console.WriteLine("b: " + b);          // 输出: b: 0.2
        Console.WriteLine("a + b: " + sum);    // 预期输出: 0.3, 实际输出: 0.30000004

        Mystruct structA = new Mystruct();
        Mystruct structB= new Mystruct();
        structA.a = 1;
        structB.a= 2;
       bool res= Object.Equals(structA.a, structB.a);//Equals传的是值
        Console.WriteLine(res);


        double x = 2.0;
        double y = x + 3 / 2;
        Console.WriteLine("y:  "+y);





    }
}
